public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.powerOn();

//        使用鼠标
        computer.useDevice(new Mouse());

//        使用键盘
        computer.useDevice(new Keybroad());

        computer.powerOff();
    }
}
